$(document).ready(function() {
	  
		$(".gamename").click(function(){
			$(this).parent().find('.lightboxGame').show();
			$(document).mouseup(function (e)
				{
				var container = $(".lightboxGame");
				
				if (container.has(e.target).length === 0)
				{
					$('.lightboxGame').hide();
				}
			});
		});   
		
		
		$('.gamehotnewtabs').idTabs();	
		
		$('.listhai').tinyscrollbar({ sizethumb: 50 });
	  
	  
		$('#slider').slides({
			play: 5000,
			animationStart: function(current){
				$('.info-tinhot1').animate({
					bottom:-100
				},300);
			},
			animationComplete: function(current){
				$('.info-tinhot1').animate({
					bottom:0
				},300);
			},
			slidesLoaded: function() {
				$('.info-tinhot1').animate({
					bottom:0
				},300);
			}
		});
		
		$('#slider-cosplay').slides({play: 3000});
	  
});  